-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Fix the order of error term's operands #13745
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
LGTM
python/mxnet/gluon/loss.py
Outdated
@@ -101,7 +101,7 @@ def hybrid_forward(self, F, x, *args, **kwargs): | |||
class L2Loss(Loss): | |||
r"""Calculates the mean squared error between `pred` and `label`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by the same reasoning, this should be swapped as label
is the subject.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, good finding!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix the order of error term's operands * address comments
* fix the order of error term's operands * address comments
Error term should be "actual minus predicted".
This PR should be no op, since all related error terms are either squared or transformed into absolute value.